﻿@model MobileTrack.Web.ViewModels.LoginViewModel
@{
    this.ViewBag.Title = "Ribeiro | MobileTrack | Iniciar Sesión";
}
<h2>
    Iniciar Sesión</h2>

@using (this.Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.ValidationSummary(true, "No se pudo iniciar sesion. Por favor, corrija los errores y trate nuevamente.")

    <fieldset>
        <legend>Log in Form</legend>
        <ol>
            <li>
                @this.Html.LabelFor(m => m.UserName)
                @this.Html.TextBoxFor(m => m.UserName)
            </li>
            <li>
                @this.Html.LabelFor(m => m.Password)
                @this.Html.PasswordFor(m => m.Password)
            </li>
            <li>
                @this.Html.CheckBoxFor(m => m.RememberMe)
                @this.Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" value="Iniciar Sesión" />
    </fieldset>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
